	<div class="fixed-title">
			<span class="befirst spacing">
								 <span class="icon icon-icon-xiexiantiao" style="color:#efadb0"></span>
								 <span class="icon icon-icon-xiexiantiao" style="color:#e26d71"></span>
								 <span class="icon icon-icon-xiexiantiao" style="color:#d62f35"></span>
			</span> 
			<span class="title-text">领取优惠券</span> 
			<span class="spacing">
								 <span class="icon icon-icon-xiexiantiao" style="color:#d62f35"></span>
								 <span class="icon icon-icon-xiexiantiao" style="color:#e26d71"></span>
								 <span class="icon icon-icon-xiexiantiao" style="color:#efadb0"></span>
			</span>
	</div>
	<div class="coupon-picker option-picker">
		<div class="option-picker-inner coupon-picker">			<div ng-if="!pagedata.coupons || pagedata.coupons.length<1" class="content-empty">				<i class='icon icon-searchlist'></i><br/> 没有任何可用的优惠券!<br/><a href="javascript:" aria-hidden="true" data-dismiss="modal" ng-click="access_json('jy_weishop/coupon.index/')" class='btn btn-default-o external'>去领券</a>			</div>
			<div class="coupon-list mini">
					<div ng-repeat="wxcard in pagedata.wxcards" class="coupon-item  {{wxcard.color}}">
						<div class="coupon-dots">
							<i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i>
						</div>
						<div class="coupon-left">
							<div class="single" ng-if="wxcard.code_type =='CASH'"><span class="subtitle">￥</span>{{wxcard.backmoney}}</div>							<div class="single" ng-if="wxcard.code_type !='CASH'">{{wxcard.backmoney}}</div>
						</div>
						<div class="coupon-right">
							<div class="title">{{wxcard.title}}</div>
							<div class="usetime">
								<div class="text">有效期:{{wxcard.timestr}}</div>
							</div>
						</div>
						<div class="coupon-after">
							<div ng-click="pagedata.addwxcard(coupon.card_id,coupon.cardExt)" ng-class="{'coupon-btn':1,'active':pagedata.post.couponid==wxcard.id}">领取</div>
						</div>
					</div>
				<div ng-repeat="coupon in pagedata.coupons" class="coupon-item  {{coupon.color}}">
					<div class="coupon-dots">
						<i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i>
					</div>
					<div class="coupon-left">
						<div class="single" style="font-size:1rem">{{coupon.title3}}</div>						<div class="single" style="font-size:0.7rem">{{coupon.title2}}</div>
					</div>
					<div class="coupon-right" style="padding:0.3rem 0.5rem">
						<div class="title">{{coupon.title}}</div>
						<div class="subtitle">{{coupon.title5}}</div>
						<div class="usetime">
							<div class="text">{{coupon.title4}}</div>
						</div>
					</div>
					<div class="coupon-after">
						<div ng-if="coupon.isdisa ==1 && coupon.issend ==1"  class="coupon-btn disabled">已发完</div>
						<div ng-if="coupon.issend ==2" class="coupon-btn disabled">已结束</div>
						<div ng-if="coupon.isdisa !=1 && coupon.issend ==1" ng-click="post({id:coupon.id,nogoback:true},'jy_weishop/coupon.detail/getcoupon/')" class="coupon-btn">领取</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<script>
scope.pagedata.addwxcard=function(card_id,cardExt){
	wx.addCard({
		cardList: [{
			cardId: card_id,
			cardExt: cardExt,
		}], // 需要添加的卡券列表
		success: function (res) {
			var cardList = res.cardList; // 添加的卡券列表信息
			scope.massage('领券成功！请前往微信卡包查看!');
		}
	});
}
</script>